﻿using HCD.Const;
using Microsoft.EntityFrameworkCore;

namespace HCD.EntityFrameworkCore
{
    /* This class is needed to run EF Core PMC commands. Not used anywhere else */
    public class HisDbContextFactory : DbContextFactory<HisDbContext>
    {
        public override string ConnectionStringName => EnterpriseConsts.HisConnectionStringName;

        public override HisDbContext CreateDbContext(DbContextOptions<HisDbContext> options)
        {
            return new HisDbContext(options);
        }
    }
}